<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html lang="zh">
<head>
    <meta charset="utf-8">
    <title>首页|星途后台管理系统</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta name="author" content="<?php echo C('WEB_SITE_TITLE');?>">
    <meta name="keywords" content="<?php echo ($meta_keywords); ?>">
    <meta name="description" content="<?php echo ($meta_description); ?>">
    <meta name="generator" content="CoreThink">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-title" content="<?php echo C('WEB_SITE_TITLE');?>">
    <meta name="format-detection" content="telephone=no,email=no">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge">
    <link rel="apple-touch-icon" type="image/x-icon" href="/fzsp/xingtu.ico">
    <link rel="shortcut icon" type="image/x-icon" href="/fzsp/xingtu.ico">
    <link rel="stylesheet" type="text/css" href="http://127.0.0.1/fzsp/Public/libs/lyui/dist/css/lyui.min.css">
    <link rel="stylesheet" type="text/css" href="http://127.0.0.1/fzsp/Application/Admin/View/Public/css/<?php if(C('ADMIN_THEME')){echo C('ADMIN_THEME');}else{echo 'admin';} ?>.css">
    <link rel="stylesheet" type="text/css" href="http://127.0.0.1/fzsp/Public/libs/animate/animate.min.css">
    
    <script type="text/javascript" src="//cdn.bootcss.com/jquery/1.12.4/jquery.min.js"></script>
    <script type="text/javascript">
        window.jQuery || document.write('<script type="text/javascript" src="http://127.0.0.1/fzsp/Public/libs/jquery/1.x/jquery.min.js"><\/script>');
        window.lingyun = {
            "app_debug"     : "<?php echo C('app_debug'); ?>",
            "app_debug_msg" : "调试模式已关闭",
            "top_home_page" : "<?php echo C('TOP_HOME_PAGE');?>",
            "home_page"     : "<?php echo C('HOME_PAGE');?>",
            "var_root "     : "/fzsp",
            "default_img"   : "<?php echo get_cover('', 'default');?>"
        }
    </script>
</head>
<body class="<?php echo ($_page_name); ?>">
    <?php $main_nav_limit = $_COOKIE['ly_main_nav_limit'] ? : 6; ?>
    <div class="clearfix full-header">
        
            <?php if (!C('ADMIN_TABS')): ?>
                <!-- 顶部导航 -->
                <div class="navbar navbar-default navbar-fixed-top main-nav" role="navigation" style="background-color: #293038;">
                    <div class="container-fluid">
                        <div>
                            <div class="navbar-header navbar-header-default">
                                <!-- <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse-top">
                                    <span class="sr-only">切换导航</span>
                                    <span class="icon-bar"></span>
                                    <span class="icon-bar"></span>
                                    <span class="icon-bar"></span>
                                </button> -->
                                
                                <!-- 一键切换后台模式 -->
                                <span class="hidden-xs btn btn-sm ajax-get pull-right m-t-sm m-r-xs" style="" href="<?php echo U('Admin/Config/toggle', array('name' => 'ADMIN_TABS'));?>"><i class="fa fa-navicon" style="font-size: 15px;"></i></span>
                            </div>
                            <div class="navbar-header navbar-header-inverse" style="background-color: #293038;">
                                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse-top">
                                    <span class="sr-only">切换导航</span>
                                    <span class="icon-bar"></span>
                                    <span class="icon-bar"></span>
                                    <span class="icon-bar"></span>
                                </button>
                                
                                    <a class="navbar-brand" href="/fzsp/admin.php">
                                        <img class="logo img-responsive" src="/fzsp/xingtu.ico">
                                    </a>
                               
                                    <a class="navbar-brand" href="/fzsp/admin.php">
                                        <span>星途管理系统</span>
                                    </a>
                                
                            </div>
                            <div class="collapse navbar-collapse navbar-collapse-top">
                                <ul class="nav navbar-nav navbar-right">
                                    <li>
                                        <a href="<?php echo U('Admin/Index/removeRuntime');?>" style="border: 0;text-align: left" class="btn ajax-get b-r-0 no-refresh">
                                            <i class="fa fa-trash"></i>
                                            <span>清空缓存</span>
                                        </a>
                                    </li>
                                    <li>
                                        <a target="_blank" href="/fzsp/"><i class="fa fa-external-link"></i>
                                            <span>打开前台</span>
                                        </a>
                                    </li>
                                    <li class="dropdown">
                                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                                            <i class="fa fa-user"></i>
                                            <span><?php echo ($_user_auth["username"]); ?></span>
                                            <span style="margin-top: -2px;" class="badge badge-danger"><?php echo ($_SESSION['ly_home_']['new_message']); ?></span>
                                            <b class="caret"></b>
                                        </a>
                                        <ul class="dropdown-menu" role="menu">
                                            <li><a target="_blank" href="/fzsp/"><i class="fa fa-external-link"></i> 打开前台</a></li>
                                            <li>
                                                <a target="_blank" href="<?php echo oc_url('User/Message/index', '', true, true);?>">
                                                    <i class="fa fa-bell"></i>
                                                    <span>我的消息</span>
                                                    <span style="margin-top: -2px;" class="badge badge-danger"><?php echo ($_SESSION['ly_home_']['new_message']); ?></span>
                                                </a>
                                            </li>
                                            <li><a href="<?php echo U('Admin/Index/removeRuntime');?>" style="border: 0;text-align: left" class="btn ajax-get no-refresh"><i class="fa fa-trash"></i> 清空缓存</a></li>
                                            <li><a href="<?php echo U('Admin/Login/logout');?>" class="ajax-get"><i class="fa fa-sign-out"></i> 退出</a></li>
                                        </ul>
                                    </li>
                                </ul>
                            </div>
                        </div>
                    </div>
                </div>
            <?php endif; ?>
        
    </div>

    <div class="clearfix full-container" id="full-container">
        
            <?php if (!C('ADMIN_TABS')): ?>
                <div class="container-fluid with-top-navbar">
                    <div class="row" style="background: #fff;">
                        <!-- 后台左侧导航 -->
                        <?php if (!request()->isMobile()): ?>
                            <div id="sidebar" class="col-xs-12 col-sm-3 sidebar tab-content">
                                <!-- 模块菜单 -->
                                <nav class="navside navside-default" role="navigation">
                                    <?php if($_current_menu_list['_child']): ?>
                                        <ul class="nav navside-nav navside-first">
                                            <?php if(is_array($_current_menu_list["_child"])): $fkey = 0; $__LIST__ = $_current_menu_list["_child"];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$_ns_first): $mod = ($fkey % 2 );++$fkey; if(!($_ns_first['is_dev'] && !C('DEVELOP_MODE'))): ?>
                                                    <li>
                                                        <a data-toggle="collapse" href="#navside-collapse-<?php echo ($_ns["id"]); ?>-<?php echo ($fkey); ?>">
                                                            <i class="<?php echo ($_ns_first["icon"]); ?>"></i>
                                                            <span class="nav-label"><?php echo ($_ns_first["title"]); ?></span>
                                                            <span class="angle fa fa-angle-down"></span>
                                                            <span class="angle-collapse fa fa-angle-left"></span>
                                                        </a>
                                                        <?php if(!empty($_ns_first["_child"])): ?><ul class="nav navside-nav navside-second collapse in" id="navside-collapse-<?php echo ($_ns["id"]); ?>-<?php echo ($fkey); ?>">
                                                                <?php if(is_array($_ns_first["_child"])): $skey = 0; $__LIST__ = $_ns_first["_child"];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$_ns_second): $mod = ($skey % 2 );++$skey; if(!($_ns_second['is_dev'] && !C('DEVELOP_MODE'))): ?>
                                                                        <li <?php if($_parent_menu_list[2]['url'] == $_ns_second['url']) echo 'class="active"'; ?>>
                                                                            <a href="<?php echo U($_ns_second['url']);?>" >
                                                                                <i class="<?php echo ($_ns_second["icon"]); ?>"></i>
                                                                                <span class="nav-label"><?php echo ($_ns_second["title"]); ?></span>
                                                                            </a>
                                                                        </li>
                                                                    <?php endif; endforeach; endif; else: echo "" ;endif; ?>
                                                            </ul><?php endif; ?>
                                                    </li>
                                                <?php endif; endforeach; endif; else: echo "" ;endif; ?>
                                        </ul>
                                    <?php endif; ?>
                                </nav>
                            </div>
                        <?php endif; ?>

                        <!-- 右侧内容 -->
                        <div id="main" class="col-xs-12 col-sm-9 main"  style="overflow-y: scroll;">
                            <!-- 面包屑导航 -->
                            <ul class="breadcrumb">
                                <li><i class="fa fa-map-marker"></i></li>
                                <?php if(is_array($_parent_menu_list)): $i = 0; $__LIST__ = $_parent_menu_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><li class="text-muted"><?php echo ($vo["title"]); ?></li><?php endforeach; endif; else: echo "" ;endif; ?>
                            </ul>

                            <!-- 主体内容区域 -->
                            <div class="tab-content ct-tab-content">
                                
    <div class="row m-t-md m-b-md">
        <div class="col-xs-12 col-sm-6 col-sm-offset-3">
            <div class="panel panel-success">
                <div class="panel-heading">
                    <?php echo ($msgTitle); ?>
                </div>
                <div class="panel-body text-center">
                    <div class="fa fa-check text-success m-t m-b" style="font-size: 100px;font-weight: 700;"></div>
                    <div class="text-success m-b" style="font-size: 30px;">
                        <?php echo($message); ?>
                    </div>
                    <p class="text-muted">
                        如果 <b id="wait" class="text-success"><?php echo($waitSecond); ?></b> 秒后没有自动跳转，请点击
                        <a id="href" href="<?php echo $jumpUrl; ?>">这里</a>。
                    </p>
                </div>
            </div>
        </div>
    </div>

                            </div>

                            <div class="clearfix footer hidden-xs">
                                <div class="navbar navbar-default" role="navigation">
                                    <div class="container－fluid">
                                        <div class="navbar-header">
                                            <a class="navbar-brand" target="_blank" href="http://zhangzhenzen.xin/">
                                                <span>星途</span>
                                            </a>
                                        </div>
                                        <div class="collapse navbar-collapse navbar-collapse-bottom">
                                            <ul class="nav navbar-nav">
                                                <li>
                                                    <a href="http://zhangzhenzen.xin/" class="text-muted" target="_blank">
                                                        <span>版权所有 © 2014-<?php echo date("Y",time()); ?></span>
                                                    </a>
                                                </li>
                                            </ul>
                                            <ul class="nav navbar-nav navbar-right">
                                                <li><a class="text-muted pull-right">Powered By 星途</a></li>
                                            </ul>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            <?php endif; ?>
        
    </div>

    <div class="clearfix full-footer">
        
    </div>

    <div class="clearfix full-script">
        <div class="container-fluid">
            <input type="hidden" id="corethink_home_img" value="http://127.0.0.1/fzsp/Application/Home/View/Public/img">
            <script type="text/javascript" src="http://127.0.0.1/fzsp/Public/libs/lyui/dist/js/lyui.min.js"></script>
            <script type="text/javascript" src="http://127.0.0.1/fzsp/Application/Admin/View/Public/js/admin.js"></script>
            <script type="text/javascript">
                $(function(){
                    // 计算相关参数用于决定顶部导航显示数量
                    var total_width = $(window).width();
                    var main_nav_limit = parseInt((total_width-220-297)/90);
                    $.cookie('ly_main_nav_limit', main_nav_limit, { expires: 100 });
                });
            </script>
            
    <script type="text/javascript" >
        (function(){
            var wait = document.getElementById('wait');
            var href = document.getElementById('href').href;
            var interval = setInterval(function(){
                var time = --wait.innerHTML;
                if(time <= 0) {
                    location.href = href;
                    clearInterval(interval);
                };
            }, 1000);
            window.stop = function (){
                clearInterval(interval);
            }
        })();
    </script>

        </div>
    </div>
</body>
</html>